#pragma once
#include "Course.h"
class LanguageCourse :
	public Course
{
protected:
	char gradeSpoken;
	char gradeWritten;
public:

	LanguageCourse()
	{
		gradeSpoken = gradeWritten = ' ';
	}

	LanguageCourse(string name, int year, char gradeSpoken, char gradeWritten)
		: Course(name, year)
	{
		this->gradeSpoken = gradeSpoken;
		this->gradeWritten = gradeWritten;
	}

	virtual ~LanguageCourse(){}

	void setGradeSpoken(char gradeSpoken){ this->gradeSpoken = gradeSpoken; }
	void setGradeWritten(char gradeWritten){ this->gradeWritten = gradeWritten; }

	char getGradeSpoken(){ return this->gradeSpoken; }
	char getGradeWritten(){ return this->gradeWritten; }

	virtual void print()
	{
		Course::print();
		cout << ", Grade spoken: " << gradeSpoken << ", Grade written: " << gradeWritten;
	}
};

